package com.hnas.trade.dao;

import java.util.List;

import com.hnas.common.service.dto.search.DTOOrderSearch;
import com.hnas.core.dao.BaseDao;
import com.hnas.core.dto.DTOPagedList;
import com.hnas.trade.orm.OrderDetail;
import com.hnas.trade.service.dto.DTOOrderDetail;


public interface OrderDetailDao extends BaseDao<OrderDetail>{

	List<OrderDetail>  findByOrderNo(String orderNo); 
	
	OrderDetail saveOrUpdate(DTOOrderDetail dto) throws Exception;

	OrderDetail findByOrderNoAndItemId(String orderNo, String itemId);

	DTOPagedList<DTOOrderDetail> search(DTOOrderSearch criteria);
	
	
}
